package com.lagou.docker.boot.mvc.web;

import com.lagou.docker.boot.mvc.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public final class UserController {

    final UserService userService;

    @GetMapping({"/", "index"})
    public Object findAll() {
        return userService.findAll();
    }
}
